package com.jbit.hxy.feign.fallback;

import com.jbit.hxy.common.Result;
import com.jbit.hxy.feign.MenuFeignClient;
import com.jbit.hxy.model.po.WxDish;
import com.jbit.hxy.model.po.WxDishFlavor;
import com.jbit.hxy.model.vo.WxDishFlavorVO;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class MenuFeignClientFallback implements MenuFeignClient {

    @Override
    public Result<List<WxDishFlavorVO>> getFlavorByDishId(Integer dishId) {
        return Result.error("获取菜品口味失败");
    }

    @Override
    public Result getDishNameById(Integer dishId) {
        return Result.error("获取菜品名称失败");
    }

    @Override
    public Result getDishCountBySetmealId(Integer id) {
        return Result.error("获取套餐菜品数量失败");
    }

    @Override
    public Result getSetmealNameById(Integer id) {
        return Result.error("获取套餐名称失败");
    }

    @Override
    public Result getSetmealDishBySetmealId(Integer id) {
        return Result.error("获取套餐菜品失败");
    }

    @Override
    public Result<WxDish> getDishById(Integer dishId) {
        return Result.error("获取菜品失败");
    }

    @Override
    public Result<List<Integer>> getFlavorIdByDishId(Integer dishId) {

        return Result.error("获取菜品口味失败");
    }

    @Override
    public Result<WxDishFlavor> selectFlavorById(Integer id) {

        return Result.error("获取菜品口味失败");
    }
}
